package com.winshare.saleAssistant.mapper;

import com.winshare.saleAssistant.domain.entity.AreaDO;
import com.winshare.saleAssistant.domain.dto.req.AreaCreateDTO;
import com.winshare.saleAssistant.domain.dto.req.AreaDeleteDTO;
import com.winshare.saleAssistant.domain.dto.req.AreaUpdateDTO;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface AreaMapStruct {

    AreaMapStruct INSTANCE = Mappers.getMapper(AreaMapStruct.class);

    AreaDO fromAreaCreateDTO(AreaCreateDTO areaCreateDTO);

    AreaDO fromAreaUpdateDTO(AreaUpdateDTO areaUpdateDTO);

    AreaDO fromAreaDeleteDTO(AreaDeleteDTO areaDeleteDTO);
}
